﻿<script type="text/javascript" src="__PUBLIC__/admin/js/common-1.0.js"></script> 
<div class="cl pd-5 bg-1 bk-gray mb-10">
  <a class="btn btn-primary radius" onclick="layer_show('添加会员','__MODULE__/User/userAdd','550','400')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加会员</a>
  <a class="btn btn-warning radius" onclick="layer_show('调整推荐关系','__MODULE__/User/upTeamRecom','600','400')" href="javascript:;"><i class="Hui-iconfont">&#xe63c;</i> 调整推荐关系</a>
  <a class="btn btn-warning radius" onclick="layer_show('调整节点人','__MODULE__/User/upTeamRecoms','600','400')" href="javascript:;"><i class="Hui-iconfont">&#xe63c;</i> 调整节点人</a>
  <span class="r mt-3">共有数据：<strong>{$rows}</strong> 条</span>
</div>
<table id="xctable" class="table table-border table-bordered table-hover table-bg table-sort">
  <thead>
    <tr class="text-c">
      <th width="20" id="us_id" onClick="tab_sort(this)"><div class="">编号</div></th>
      <th width="60">操作</th>
      <th width="65" id="us_uid" onClick="tab_sort(this)"><div class="">会员编号</div></th>
      <th width="70" id="us_gid" onClick="tab_sort(this)"><div class="">会员等级</div></th>
      <th width="160" id="us_pid" onClick="tab_sort(this)"><div class="">会员信息</div></th>
      <th width="160" id="us_lid" onClick="tab_sort(this)"><div class="">合伙人信息</div></th>
      <th width="40" id="us_place" onClick="tab_sort(this)"><div class="">区域</div></th>
      <th width="60" id="us_name" onClick="tab_sort(this)"><div class="">姓名</div></th>
      <th width="60" id="us_phone" onClick="tab_sort(this)"><div class="">手机号</div></th>
      <th width="155" id="us_money" onClick="tab_sort(this)"><div class="">账户信息</div></th>
      <th width="50" id="us_count" onClick="tab_sort(this)"><div class="">直推人数</div></th>
      <th width="150" id="us_area" onClick="tab_sort(this)"><div class="">地区</div></th>
      <!--<th width="70" id="us_scount" onClick="tab_sort(this)"><div class="">伞下人数</div></th>-->
      <th width="120" id="uv_money" onClick="tab_sort(this)"><div class="">业绩</div></th>
      <th width="140" id="us_atime" onClick="tab_sort(this)"><div class="">注册时间</div></th>
      <th width="70"  onClick="tab_sort(this)"><div class="">团队</div></th>
      <th width="50" id="us_state" onClick="tab_sort(this)"><div class="">状态</div></th>
    </tr>
  </thead>
  <volist name="list" id="vo" >
  <tr class="text-c">
    <td>{$i}</td>
    <!--<td>{$vo.us_id}</td>-->
    <td class="flexigrid"><div style="text-align:left;min-width:50px !important; max-width:inherit !important;"> <span class="btn1"><em><i class="fa fa-cog"></i>设置<i class="arrow"></i></em>
      <ul><li><a href="{:U('User/userShow',array('id'=>$vo['us_id']))}" target="_blank">登陆会员</a></li>
      <if condition="($vo.us_state eq 1)">
        <li><a onClick="update_state('user','us_id={$vo.us_id}','us_state','2','锁定');" href="javascript:;" title="锁定"><i class="Hui-iconfont">&#xe60e;</i>锁定</a></li>
        <li><a onclick="layer_open('[{$vo.us_name}]资金明细','__MODULE__/Income/acUserList?id={$vo.us_uid}','','500')" href="javascript:;">资金明细</a></li>
        <li><a onclick="layer_show('编辑信息','__MODULE__/User/userEdit?id={$vo.us_id}','','500')" href="javascript:;">编辑信息</a></li>
        <li><a onclick="layer_show('修改等级','__MODULE__/User/demotion?id={$vo.us_id}','','500')" href="javascript:;">修改等级</a></li>
      <elseif condition="($vo[us_state] eq 2)"/>
        <li><a onClick="update_state('user','us_id={$vo.us_id}','us_state','1','解锁');" href="javascript:;" title="解锁"><i class="Hui-iconfont">&#xe63f;</i>解锁</a></li>
      <elseif condition="($vo[us_state] eq 3)"/>
        <li><a onClick="userDelete(this,'{$vo.us_uid}');" href="javascript:;" title="删除">删除会员</a></li></if>
        <if condition="($vo[us_state] eq 5)">
        <li><a onClick="userDelete(this,'{$vo.us_uid}');" href="javascript:;" title="删除">删除会员</a></li></if>
      </if>
      </ul></span></div>
    </td>
    <td> <a href="{:U('User/userShow',array('id'=>$vo['us_id']))}" target="_blank">{$vo.us_uid}</a></td>
    <td>{$vo.grade.gr_name}</td>
    <td>推荐人ID:<if condition="($vo.us_pid neq 0)">{$vo.us_pid}<else />无</if><br/>
      VIP ID<if condition="($vo.lid neq 0)">{$vo.lid.uv_vid}<else />无</if><br/>
      节点人ID:<if condition="($vo['lid']['uv_lid'] neq 0)">{$vo.lid.uv_lid}<else />无</if></td>

    <td>推荐人ID:<if condition="($vo.us_pid neq 0)">{$vo.us_pid}<else />无</if><br/>
      合伙人 ID<if condition="($vo.hid neq 0)">{$vo.hid.ul_hid}<else />无</if><br/>
      节点人ID:<if condition="($vo['hid']['ul_lid'] neq 0)">{$vo.hid.ul_lid}<else />无</if></td>

    <td><if condition="($vo['hid']['ul_place'] eq 1)">左区<elseif condition="($vo['hid']['ul_place'] eq 2)"/>右区</if><br/></td>
    <td>{$vo.us_name}</td>
    <td>{$vo.us_phone}</td>
    <td>劲宝：{$vo.us_money}<br/>冻结积分：{$vo.us_newpoints}<br/>购物积分：{$vo.us_frozen}<br/>股权：{$vo.us_equity}<br/>复销钱包：{$vo.us_moneynew}</td>
    <td>{$vo.us_count}</td>
    <td>{$vo.us_area}</td>
<!--    {$vo.hid.ul_smoney}-->
    <!--<td>{$vo.us_scount}</td>-->
    <td>总业绩：<if condition="$vo.hid eq 0">0.00<else/>{$vo.hid.ul_smoney}</if></td>
<!--    <td>日业绩：0.00{$vo.money.uv_money}<br/>总业绩：0.00{$vo.money.uv_smoney}</td>-->
    <td>{$vo.us_atime|date='Y-m-d H:i',###}</td>
    <td><a href="javascript:;" onClick="layer_show('查看会员','__MODULE__/User/lowerUser?id={$vo.us_uid}')">查看</a></td>
    <td>
      <if condition="($vo.us_state eq 1)">
        <span class="label label-success radius">{$ustate['1']}</span>
      <elseif condition="($vo.us_state eq 2)"/>
        <span class="label label-danger radius">{$ustate['2']}</span>
      <elseif condition="($vo.us_state eq 3)"/>
        <span class="label label-primary radius">{$ustate['3']}</span>
      <elseif condition="($vo.us_state eq 5)"/>
        <span class="label label-warning radius">{$ustate['5']}</span>
      </if>
    </td>
  </tr>
  </volist>
</table>
{$page}<!-- 分页-->
<script type="text/javascript">
$(".pagination a").click(function(){
	var page = $(this).data('p');
	ajax_get_table('myfrom1',page);
});
</script>
